﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UsersGroupsByAdminUsername.aspx.cs" Inherits="GPSTrackingWebsiteManager.Manager.Pages.UsersGroupsByAdminUsername" %>

<!DOCTYPE html>

<link href="../../Css/GPSTrackingWebsite.css" rel="stylesheet" />
<link href="../../Css/messi.css" rel="stylesheet" />
<script src="../../Javascript/jquery-1.11.1.min.js"></script>
<script src="../../Javascript/messi.js"></script>
<script src="../../Javascript/Custom.js"></script>
<script src="../../Javascript/WindowMessageManager.js"></script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Grupo de Usuarios</title><telerik:RadScriptBlock ID="RadScriptBlock3" runat="server">
    <script type="text/javascript">
        function resizeGrid() {
            var height = (window.innerHeight) - 25;
            var tableView = $find("<%=AdminGrid.ClientID %>");
            tableView.get_element().style.height = (height) / 2 + "px";

            var tableView2 = $find("<%=DepartmentsGrid.ClientID %>");
            tableView2.get_element().style.height = (height - (height) / 2) + "px";

            var tableView3 = $find("<%=UsersGroupsGrid.ClientID %>");
            tableView3.get_element().style.height = (height - (height) / 2) + "px";

            var tableView4 = $find("<%=UsersGrid.ClientID %>");
            tableView4.get_element().style.height = (height - (height) / 2) + "px";

            document.getElementById('HiddenFieldHeight').value = (window.innerHeight);
        }

        //Windows Message Manager 
        var objWindowsMessageManager = new WindowsMessageManager();
    </script>
</telerik:RadScriptBlock>
</head>
<body onresize="resizeGrid()" style="overflow: hidden">
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="AdminGrid">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rmpUserGroups" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelCssClass="" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="DepartmentsGrid">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rmpUserGroups" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelCssClass="" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="UsersGroupsGrid">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rmpUserGroups" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelCssClass="" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="UsersGrid">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="UsersGrid" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelCssClass="" />
                        <telerik:AjaxUpdatedControl ControlID="HiddenFieldError" /> 
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"></telerik:RadAjaxLoadingPanel>
        <asp:HiddenField ID="HiddenFieldHeight" runat="server" Value="515" />
        <asp:HiddenField ID="HiddenFieldError" runat="server" Value="" />
        <asp:HiddenField ID="HiddenFieldErrorUserGroups" runat="server" Value="" />

        <telerik:RadTabStrip ID="rtsUserGroups" runat="server" SelectedIndex="0" MultiPageID="rmpUserGroups" ></telerik:RadTabStrip>
        <telerik:RadMultiPage ID="rmpUserGroups" runat="server" SelectedIndex="0">
        <telerik:RadPageView ID="rpvUserGroups" runat="server">

        <div>
            <table border="0" CellSpacing="0" GridLines="None">
                <tr>
                    <td>
                        <telerik:RadGrid ID="AdminGrid" runat="server" AutoGenerateColumns="False" CellSpacing="0" GridLines="None" Height="100%" Width="100%" OnNeedDataSource="AdminGrid_NeedDataSource" OnSelectedIndexChanged="AdminGrid_SelectedIndexChanged" AllowFilteringByColumn="False" AllowSorting="true" GroupingSettings-CaseSensitive="false" OnItemCommand="AdminGrid_ItemCommand">
                        <MasterTableView EditMode="PopUp" EditFormSettings-PopUpSettings-Modal="true" EditFormSettings-CaptionFormatString="Modo Edición" CommandItemDisplay="TopAndBottom" NoMasterRecordsText="No hay registros" AllowFilteringByColumn="true" TableLayout="Auto">
                        <CommandItemTemplate>
                            <div style="padding: 5px 5px;"> Administradores: 
                                <asp:LinkButton ID="lbClearAdminGridFilters" runat="server" OnClick="lbClearAdminGridFilters_Click"  Visible='<%# !AdminGrid.MasterTableView.IsItemInserted %>'><img style="padding-left:10px; padding-right:5px; vertical-align:middle" alt="" src="../../Template/Icons/16px/mixx-icon.png"/>Limpiar Filtros</asp:LinkButton>                                                                               
                            </div>                        
                        </CommandItemTemplate>

                        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </RowIndicatorColumn>

                        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </ExpandCollapseColumn>

                        <Columns>
                            <telerik:GridBoundColumn DataField="AdminUsername" FilterControlAltText="Filter MasterUsername column" HeaderText="Admin Username" UniqueName="AdminUsername" ForceExtractValue="Always" HeaderStyle-Width="150px" FilterControlWidth="130px" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" >
                                 <ColumnValidationSettings EnableRequiredFieldValidation="true">
                                    <RequiredFieldValidator ForeColor="Red" ErrorMessage="* Requerido" SetFocusOnError="true"></RequiredFieldValidator>
                                </ColumnValidationSettings>
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Name" FilterControlAltText="Filter Name column" HeaderText="Nombre" UniqueName="Name" HeaderStyle-Width="150px" FilterControlWidth="130px" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" >
                                 <ColumnValidationSettings EnableRequiredFieldValidation="true">
                                    <RequiredFieldValidator ForeColor="Red" ErrorMessage="* Requerido" SetFocusOnError="true"></RequiredFieldValidator>
                                </ColumnValidationSettings>
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="FirstName" FilterControlAltText="Filter FirstName column" HeaderText="Primer Apellido" UniqueName="FirstName" HeaderStyle-Width="150px" FilterControlWidth="130px" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" >
                                 <ColumnValidationSettings EnableRequiredFieldValidation="true">
                                    <RequiredFieldValidator ForeColor="Red" ErrorMessage="* Requerido" SetFocusOnError="true"></RequiredFieldValidator>
                                </ColumnValidationSettings>
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="LastName" FilterControlAltText="Filter LastName column" HeaderText="Segundo Apellido" UniqueName="LastName" Display="false" HeaderStyle-Width="150px" FilterControlWidth="130px" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" >
                                 <ColumnValidationSettings EnableRequiredFieldValidation="true">
                                    <RequiredFieldValidator ForeColor="Red" ErrorMessage="* Requerido" SetFocusOnError="true"></RequiredFieldValidator>
                                </ColumnValidationSettings>
                            </telerik:GridBoundColumn>                         
                        </Columns>

                        <EditFormSettings>
                            <EditColumn InsertText="Agregar" UpdateText="Actualizar" CancelText="Cancelar" ButtonType="ImageButton"></EditColumn>
                        </EditFormSettings>

                        <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>
                        </MasterTableView>
                        <ClientSettings EnableRowHoverStyle="true"  EnablePostBackOnRowClick="true">
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True">
                            </Scrolling>  <Selecting AllowRowSelect="True"></Selecting><ClientEvents OnPopUpShowing="PopUpShowing" />
                        </ClientSettings>
                        <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>

                        <FilterMenu EnableImageSprites="False"></FilterMenu>
                        </telerik:RadGrid>

                    </td>
                    <td>&nbsp</td>
                    <td>


                        <telerik:RadGrid ID="DepartmentsGrid" ShowStatusBar="true" runat="server" AllowMultiRowSelection="false" AllowFilteringByColumn="false" AutoGenerateColumns="False" CellSpacing="0" GridLines="None" Height="100%" Width="100%" OnNeedDataSource="DepartmentsGrid_NeedDataSource" OnSelectedIndexChanged="DepartmentsGrid_SelectedIndexChanged" AllowSorting="true" GroupingSettings-CaseSensitive="false" OnItemCommand="DepartmentsGrid_ItemCommand">
                            <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true">
                                 <Selecting AllowRowSelect="True"></Selecting><ClientEvents OnPopUpShowing="PopUpShowing" />
                            </ClientSettings>

		                    <MasterTableView EditMode="PopUp" EditFormSettings-PopUpSettings-Modal="true" EditFormSettings-CaptionFormatString="Modo Edición" CommandItemDisplay="TopAndBottom" NoMasterRecordsText="No hay registros" AllowFilteringByColumn="true" TableLayout="Auto">
                            <CommandItemTemplate>
                                <div style="padding: 5px 5px;"> Departamentos: 
                                        <asp:LinkButton ID="lbClearDepartmentsGridFilters" runat="server" OnClick="lbClearDepartmentsGridFilters_Click"  Visible='<%# !DepartmentsGrid.MasterTableView.IsItemInserted %>'><img style="padding-left:10px; padding-right:5px; vertical-align:middle" alt="" src="../../Template/Icons/16px/mixx-icon.png"/>Limpiar Filtros</asp:LinkButton>                                                                               
                                </div>                        
                            </CommandItemTemplate>

                            <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </RowIndicatorColumn>

                            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </ExpandCollapseColumn>

                            <Columns>                            
                                <telerik:GridBoundColumn DataField="DepartmentId" FilterControlAltText="Filter Name column" HeaderText="Departamento ID" UniqueName="DepartmentId" ReadOnly="false" ForceExtractValue="Always" ItemStyle-Width="50px" Display="false"><ItemStyle Width="50px"></ItemStyle>
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Name" FilterControlAltText="Filter Name column" HeaderText="Nombre" UniqueName="Name" HeaderStyle-Width="200px" FilterControlWidth="180px" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" >
                                </telerik:GridBoundColumn>
                            </Columns>

                            <EditFormSettings>
                            <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
                            </EditFormSettings>

                            <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>
                            </MasterTableView>
                            <ClientSettings EnableRowHoverStyle="true"  EnablePostBackOnRowClick="true">
                                <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True">
                                </Scrolling>  <Selecting AllowRowSelect="True"></Selecting><ClientEvents OnPopUpShowing="PopUpShowing" />
                            </ClientSettings>
                        </telerik:RadGrid>
                    </td>
                    <td>&nbsp</td>
                    <td>

                        <telerik:RadGrid ID="UsersGroupsGrid"  ShowStatusBar="true" runat="server" AllowMultiRowSelection="false" AllowFilteringByColumn="false" AutoGenerateColumns="False" CellSpacing="0" GridLines="None" Height="100%" Width="100%" OnNeedDataSource="UsersGroupsGrid_NeedDataSource" OnInsertCommand="UsersGroupsGrid_InsertCommand" OnUpdateCommand="UsersGroupsGrid_UpdateCommand" OnDeleteCommand="UsersGroupsGrid_DeleteCommand" OnSelectedIndexChanged="UsersGroupsGrid_SelectedIndexChanged" OnItemCommand="UsersGroupsGrid_ItemCommand" AllowSorting="true" GroupingSettings-CaseSensitive="false">
                            <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true">
                                 <Selecting AllowRowSelect="True"></Selecting><ClientEvents OnPopUpShowing="PopUpShowing" />
                            </ClientSettings>

		                    <MasterTableView EditMode="PopUp" EditFormSettings-PopUpSettings-Modal="true" EditFormSettings-CaptionFormatString="Modo Edición" CommandItemDisplay="TopAndBottom" NoMasterRecordsText="No hay registros" AllowFilteringByColumn="true" TableLayout="Auto">
                            <CommandItemTemplate>
                                <div style="padding: 5px 5px;"> Grupo Usuarios: 
                                        <asp:LinkButton ID="lbAdd" runat="server" CommandName="InitInsert" Visible='<%# !UsersGroupsGrid.MasterTableView.IsItemInserted %>'><img style="padding-left:10px; padding-right:5px; vertical-align:middle" alt="" src="../../Template/Icons/16px/text-plus-icon.png"/>Nuevo Grupo</asp:LinkButton>
                                        <asp:LinkButton ID="lbClearUsersGroupsGridFilters" runat="server" OnClick="lbClearUsersGroupsGridFilters_Click"  Visible='<%# !UsersGroupsGrid.MasterTableView.IsItemInserted %>'><img style="padding-left:10px; padding-right:5px; vertical-align:middle" alt="" src="../../Template/Icons/16px/mixx-icon.png"/>Limpiar Filtros</asp:LinkButton>                                                                               
                                        <asp:LinkButton ID="lbShowErrorUserGroups" runat="server" OnClick="lbShowErrorUserGroups_Click" Visible='<%# HiddenFieldErrorUserGroups.Value == string.Empty ? false : true %>'><img style="padding-left:10px; padding-right:5px; vertical-align:middle" alt="" src="../../Template/Icons/16px/bug-icon.png"/>Error Técnico</asp:LinkButton>                                                                                                               
                                </div>                        
                            </CommandItemTemplate>

                            <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </RowIndicatorColumn>

                            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </ExpandCollapseColumn>

                            <Columns>
                                <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderStyle-Width="25px" EditText="Editar" ItemStyle-Width="20px"/>
                                <telerik:GridButtonColumn HeaderStyle-Width="25px" ConfirmText="¿Desea eliminar el registro?" ConfirmDialogType="RadWindow" ConfirmDialogHeight="120" ConfirmDialogWidth="270" ConfirmTitle="Eliminar" ButtonType="ImageButton" CommandName="Delete" Text="Eliminar" ItemStyle-Width="20px" />
                                <telerik:GridBoundColumn DataField="UserGroupId" FilterControlAltText="Filter ClienteId column" ForceExtractValue="Always" HeaderText="Grupo Usuario ID" ReadOnly="True" UniqueName="UserGroupId" Display="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="UserGroupIdSource.Name" FilterControlAltText="Filter Name column" HeaderText="Nombre" UniqueName="Name" HeaderStyle-Width="200px" MaxLength="50" FilterControlWidth="180px" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" >
                                     <ColumnValidationSettings EnableRequiredFieldValidation="true">
                                        <RequiredFieldValidator ForeColor="Red" ErrorMessage="* Requerido" SetFocusOnError="true"></RequiredFieldValidator>
                                    </ColumnValidationSettings>
                                </telerik:GridBoundColumn>                        
                            </Columns>

                            <EditFormSettings>
                                <EditColumn InsertText="Agregar" UpdateText="Actualizar" CancelText="Cancelar" ButtonType="ImageButton"></EditColumn>
                            </EditFormSettings>
                            </MasterTableView>
                            <ClientSettings EnableRowHoverStyle="true"  EnablePostBackOnRowClick="true">
                                <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True">
                                </Scrolling>  <Selecting AllowRowSelect="True"></Selecting><ClientEvents OnPopUpShowing="PopUpShowing" />
                            </ClientSettings>
                        </telerik:RadGrid>

                    </td>
                </tr>
            </table>
        </div>
        <div>
            <br />
            <telerik:RadGrid ID="UsersGrid" runat="server" AllowFilteringByColumn="False" AutoGenerateColumns="False" CellSpacing="0" GridLines="None" Height="100%" Width="100%" OnDeleteCommand="UsersGrid_DeleteCommand" OnInsertCommand="UsersGrid_InsertCommand" OnNeedDataSource="UsersGrid_NeedDataSource" OnUpdateCommand="UsersGrid_UpdateCommand" AllowSorting="true" GroupingSettings-CaseSensitive="false" OnItemDataBound="UsersGrid_ItemDataBound" OnItemCommand="UsersGrid_ItemCommand">
                    
		        <MasterTableView EditMode="PopUp" EditFormSettings-PopUpSettings-Modal="true" EditFormSettings-CaptionFormatString="Modo Edición" CommandItemDisplay="TopAndBottom" NoMasterRecordsText="No hay registros" AllowFilteringByColumn="true" TableLayout="Auto">
                <CommandItemTemplate>
                    <div style="padding: 5px 5px;"> Usuarios: 
                            <asp:LinkButton ID="lbAdd" runat="server" CommandName="InitInsert" Visible='<%# !UsersGrid.MasterTableView.IsItemInserted %>'><img style="padding-left:10px; padding-right:5px; vertical-align:middle" alt="" src="../../Template/Icons/16px/text-plus-icon.png"/>Nuevo Usuario</asp:LinkButton>
                            <asp:LinkButton ID="lbClearUserGridFilters" runat="server" OnClick="lbClearUserGridFilters_Click"  Visible='<%# !UsersGrid.MasterTableView.IsItemInserted %>'><img style="padding-left:10px; padding-right:5px; vertical-align:middle" alt="" src="../../Template/Icons/16px/mixx-icon.png"/>Limpiar Filtros</asp:LinkButton>                                                                               
                			<asp:LinkButton ID="lbShowError" runat="server" OnClick="lbShowError_Click" Visible='<%# HiddenFieldError.Value == string.Empty ? false : true %>'><img style="padding-left:10px; padding-right:5px; vertical-align:middle" alt="" src="../../Template/Icons/16px/bug-icon.png"/>Error Técnico</asp:LinkButton>                                                                                                               
                    </div>                        
                </CommandItemTemplate>
                    <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </RowIndicatorColumn>

                    <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </ExpandCollapseColumn>

                    <Columns>
                        <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderStyle-Width="25px" EditText="Editar" ItemStyle-Width="20px"/>
                        <telerik:GridButtonColumn HeaderStyle-Width="25px" ConfirmText="¿Desea eliminar el registro?" ConfirmDialogType="RadWindow" ConfirmDialogHeight="120" ConfirmDialogWidth="270" ConfirmTitle="Eliminar" ButtonType="ImageButton" CommandName="Delete" Text="Eliminar" ItemStyle-Width="20px" />
                        <telerik:GridBoundColumn DataField="Username" FilterControlAltText="Filter MasterUsername column" HeaderText="Username" UniqueName="Username" Visible="true" HeaderStyle-Width="100px" MaxLength="30" FilterControlWidth="80px" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" >
                                <ColumnValidationSettings EnableRequiredFieldValidation="true">
                                <RequiredFieldValidator ForeColor="Red" ErrorMessage="* Requerido" SetFocusOnError="true"></RequiredFieldValidator>
                            </ColumnValidationSettings>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Password"  FilterControlAltText="Filter Password column" HeaderText="Contraseña" UniqueName="Password" Display="false" HeaderStyle-Width="100px" MaxLength="50" FilterControlWidth="80px" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Identification" FilterControlAltText="Filter Identification column" HeaderText="Identificación" UniqueName="Identification" HeaderStyle-Width="100px" MaxLength="16" FilterControlWidth="80px" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" >
                                <ColumnValidationSettings EnableRequiredFieldValidation="true">
                                <RequiredFieldValidator ForeColor="Red" ErrorMessage="* Requerido" SetFocusOnError="true"></RequiredFieldValidator>
                            </ColumnValidationSettings>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Name" FilterControlAltText="Filter Name column" HeaderText="Nombre" UniqueName="Name" HeaderStyle-Width="100px" MaxLength="50" FilterControlWidth="80px" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" >
                                <ColumnValidationSettings EnableRequiredFieldValidation="true">
                                <RequiredFieldValidator ForeColor="Red" ErrorMessage="* Requerido" SetFocusOnError="true"></RequiredFieldValidator>
                            </ColumnValidationSettings>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="FirstName" FilterControlAltText="Filter FirstName column" HeaderText="Primer Apellido" UniqueName="FirstName" HeaderStyle-Width="100px" MaxLength="50" FilterControlWidth="80px" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" >
                                <ColumnValidationSettings EnableRequiredFieldValidation="true">
                                <RequiredFieldValidator ForeColor="Red" ErrorMessage="* Requerido" SetFocusOnError="true"></RequiredFieldValidator>
                            </ColumnValidationSettings>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="LastName" FilterControlAltText="Filter LastName column" HeaderText="Segundo Apellido" UniqueName="LastName" HeaderStyle-Width="100px" MaxLength="50" FilterControlWidth="80px" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" >
                                <ColumnValidationSettings EnableRequiredFieldValidation="true">
                                <RequiredFieldValidator ForeColor="Red" ErrorMessage="* Requerido" SetFocusOnError="true"></RequiredFieldValidator>
                            </ColumnValidationSettings>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Email" FilterControlAltText="Filter Email column" HeaderText="Email" UniqueName="Email" HeaderStyle-Width="150px" MaxLength="50" FilterControlWidth="130px" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" >
                                <ColumnValidationSettings EnableRequiredFieldValidation="true">
                                <RequiredFieldValidator ForeColor="Red" ErrorMessage="* Requerido" SetFocusOnError="true"></RequiredFieldValidator>
                            </ColumnValidationSettings>
                        </telerik:GridBoundColumn>
                        <telerik:GridMaskedColumn DataField="Mobile" DataFormatString="{0:####-####}" DisplayMask="####-####" FilterControlAltText="Filter Mobile column" HeaderText="Movil" Mask="####-####" UniqueName="Mobile" HeaderStyle-Width="90px" MaxLength="50" FilterControlWidth="70px" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" >
                        </telerik:GridMaskedColumn>
                        <telerik:GridMaskedColumn DataField="Phone" DataFormatString="{0:####-####}" DisplayMask="####-####" FilterControlAltText="Filter Mobile column" HeaderText="Teléfono" Mask="####-####" UniqueName="Phone" HeaderStyle-Width="90px" MaxLength="50" FilterControlWidth="70px" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" >
                        </telerik:GridMaskedColumn>
                        <telerik:GridCheckBoxColumn DataField="IsActive" CurrentFilterValue="true" DataType="System.Boolean" FilterControlAltText="Filter IsActive column" HeaderText="Activo" UniqueName="IsActive" HeaderStyle-Width="50" FilterControlWidth="40px" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" Display="false" >
                        </telerik:GridCheckBoxColumn>
                        <telerik:GridBoundColumn DataField="CreationDate" FilterControlAltText="Filter Email column" HeaderText="CreationDate" UniqueName="CreationDate" Visible="False" ReadOnly="true" ForceExtractValue="Always">
                        </telerik:GridBoundColumn>
                            
                    </Columns>

                    <EditFormSettings>
                        <EditColumn InsertText="Agregar" UpdateText="Actualizar" CancelText="Cancelar" ButtonType="ImageButton"></EditColumn>
                    </EditFormSettings>
                </MasterTableView>
                <ClientSettings EnableRowHoverStyle="true">
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True">
                    </Scrolling>  <Selecting AllowRowSelect="True"></Selecting><ClientEvents OnPopUpShowing="PopUpShowing" />
                </ClientSettings>
                <FilterMenu EnableImageSprites="False"></FilterMenu>
            </telerik:RadGrid>



            <telerik:RadWindowManager ID="RadWindowManager1" runat="server"></telerik:RadWindowManager>       
        </div>
        </telerik:RadPageView>
        </telerik:RadMultiPage>
    </form>
</body>
</html>
